<?php

require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';
sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    $this->enablePlugins('sfDoctrinePlugin');
    //$this->enablePlugins('sfAdminThemejRollerPlugin');
    //$this->enablePlugins('mpRealityAdminPlugin');
    $this->enablePlugins('adBlueprintPlugin');
    $this->enablePlugins('sfJqueryReloadedPlugin');
    $this->enablePlugins('sfFormExtraPlugin');
    $this->enablePlugins('sfEasyGMapPlugin');
    $this->enablePlugins('sfThumbnailPlugin');
    $this->enablePlugins('sfDoctrineGuardPlugin');
    

    
    /* MAILER EVENT CONNECTION */
    $this->dispatcher->connect('seller.lostPassword', array('sellerMailer',  'passwordForget'));
    $this->dispatcher->connect('seller.bayerContact', array('sellerMailer',  'bayerContact'));
    $this->dispatcher->connect('seller.contactus', array('sellerMailer',  'contactUs'));
    $this->dispatcher->connect('ads.signalabus', array('sellerMailer',  'signalabus'));
    $this->dispatcher->connect('ads.sendToFriend', array('sellerMailer',  'sendToFriend'));
    $this->dispatcher->connect('admin.newAds', array('sellerMailer',  'adminNewAds'));

    /* back */
    $this->dispatcher->connect('admin.activeAds', array('sellerMailer',  'adminSendActiveAdsToSeller'));
    
  }
  
  
  
}
